<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.4.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/blog/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/blog/images/tomato.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/blog/images/tomato-16.png">
  <link rel="mask-icon" href="/blog/images/logo.svg" color="#222">

<link rel="stylesheet" href="/blog/css/main.css">


<link rel="stylesheet" href="/blog/lib/font-awesome/css/all.min.css">
  <link rel="stylesheet" href="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"linfanqie.gitee.io","root":"/blog/","scheme":"Mist","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":true,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
  </script>

  <meta name="description" content="介绍：本文主要讲解Hexo常用命令和如何部署并上传到远程地址。">
<meta property="og:type" content="article">
<meta property="og:title" content="Hexo搭建个人博客（三）">
<meta property="og:url" content="https://linfanqie.gitee.io/2021/03/02/Hexo%E7%B3%BB%E5%88%97%EF%BC%88%E4%B8%89%EF%BC%89/index.html">
<meta property="og:site_name" content="林番茄的Blog">
<meta property="og:description" content="介绍：本文主要讲解Hexo常用命令和如何部署并上传到远程地址。">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://linfanqie.gitee.io/blog/2021/03/02/Hexo%E7%B3%BB%E5%88%97%EF%BC%88%E4%B8%89%EF%BC%89/gitee%E4%BB%93%E5%BA%93%E5%88%9B%E5%BB%BA.jpg">
<meta property="og:image" content="https://linfanqie.gitee.io/blog/2021/03/02/Hexo%E7%B3%BB%E5%88%97%EF%BC%88%E4%B8%89%EF%BC%89/ssh.jpg">
<meta property="og:image" content="https://linfanqie.gitee.io/blog/2021/03/02/Hexo%E7%B3%BB%E5%88%97%EF%BC%88%E4%B8%89%EF%BC%89/pages.png">
<meta property="article:published_time" content="2021-03-02T03:49:22.000Z">
<meta property="article:modified_time" content="2021-04-01T03:03:34.494Z">
<meta property="article:author" content="林番茄">
<meta property="article:tag" content="Hexo系列">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://linfanqie.gitee.io/blog/2021/03/02/Hexo%E7%B3%BB%E5%88%97%EF%BC%88%E4%B8%89%EF%BC%89/gitee%E4%BB%93%E5%BA%93%E5%88%9B%E5%BB%BA.jpg">

<link rel="canonical" href="https://linfanqie.gitee.io/2021/03/02/Hexo%E7%B3%BB%E5%88%97%EF%BC%88%E4%B8%89%EF%BC%89/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>Hexo搭建个人博客（三） | 林番茄的Blog</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/blog/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">林番茄的Blog</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">世界那么大，总得慢慢看。</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/blog/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/blog/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/blog/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://linfanqie.gitee.io/2021/03/02/Hexo%E7%B3%BB%E5%88%97%EF%BC%88%E4%B8%89%EF%BC%89/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/blog/images/cate.jpg">
      <meta itemprop="name" content="林番茄">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="林番茄的Blog">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          Hexo搭建个人博客（三）
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2021-03-02 11:49:22" itemprop="dateCreated datePublished" datetime="2021-03-02T11:49:22+08:00">2021-03-02</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2021-04-01 11:03:34" itemprop="dateModified" datetime="2021-04-01T11:03:34+08:00">2021-04-01</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/Hexo%E7%B3%BB%E5%88%97/" itemprop="url" rel="index"><span itemprop="name">Hexo系列</span></a>
                </span>
            </span>

          <br>
            <span class="post-meta-item" title="本文字数">
              <span class="post-meta-item-icon">
                <i class="far fa-file-word"></i>
              </span>
                <span class="post-meta-item-text">本文字数：</span>
              <span>1.8k</span>
            </span>
            <span class="post-meta-item" title="阅读时长">
              <span class="post-meta-item-icon">
                <i class="far fa-clock"></i>
              </span>
                <span class="post-meta-item-text">阅读时长 &asymp;</span>
              <span>2 分钟</span>
            </span>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <p><strong>介绍：</strong>本文主要讲解Hexo常用命令和如何部署并上传到远程地址。</p>
<span id="more"></span>
<h3 id="常用命令"><a href="#常用命令" class="headerlink" title="常用命令"></a>常用命令</h3><h4 id="hexo-init"><a href="#hexo-init" class="headerlink" title="hexo init "></a>hexo init <br/></h4><p><font size=3 color=red>hexo init</font> 命令用于初始化本地文件夹为网站的根目录</p>
<blockquote>
<figure class="highlight swift"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo <span class="function"><span class="keyword">init</span> &lt;folder&gt;</span></span><br></pre></td></tr></table></figure>
</blockquote>
<ul>
<li><font size=3 color=red>folder</font> 可选参数；</li>
<li>两步可选其一：<blockquote>
<p>1、在合适的地方新建一个文件夹，跳转至此文件夹进行操作：hexo init 初始化该文件夹作为Hexo根目录<br>2、直接在CMD或终端（macOS）中输入：hexo init &lt;文件夹名称&gt; 会直接新创一个文件夹并初始化作为Hexo根目录</p>
</blockquote>
</li>
</ul>
<h4 id="hexo-new"><a href="#hexo-new" class="headerlink" title="hexo new "></a>hexo new <br/></h4><p><font size=3 color=red>hexo new</font> 用于新建新文章，可以简写为：hexo n</p>
<blockquote>
<figure class="highlight gauss"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo <span class="keyword">new</span> [layout] <span class="built_in">title</span></span><br></pre></td></tr></table></figure>
</blockquote>
<ul>
<li><font size=3 color=red>layout</font>  可选，用于指定文章类型，若无指定则默认由配置文件的default_layout决定</li>
<li><font size=3 color=red>title</font>  必填 ，用于指定文章标题，若含有空格，则需要使用双引号包围</li>
</ul>
<h4 id="hexo-generate"><a href="#hexo-generate" class="headerlink" title="hexo generate "></a>hexo generate <br/></h4><p><font size=3 color=red>hexo new</font> 用于生成静态文件，可以简写为：hexo g</p>
<blockquote>
<figure class="highlight verilog"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo <span class="keyword">generate</span> </span><br></pre></td></tr></table></figure>
<figure class="highlight elixir"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="variable">$ </span>hexo g -d <span class="keyword">or</span> hexo d -g </span><br></pre></td></tr></table></figure>
</blockquote>
<ul>
<li>-d 可选，指定静态文件生成后，可直接部署到远程地址上，如git</li>
<li>【可参考信息】<a href="https://hexo.io/zh-cn/docs/generating" target="_black">https://hexo.io/zh-cn/docs/generating</a></li>
</ul>
<h4 id="hexo-server"><a href="#hexo-server" class="headerlink" title="hexo server"></a>hexo server</h4><p><font size=3 color=red>hexo server</font> 用于启动本地服务器，可以简写为：hexo s</p>
<blockquote>
<figure class="highlight pgsql"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo <span class="keyword">server</span> </span><br></pre></td></tr></table></figure>
</blockquote>
<ul>
<li>-p 可选；指定服务器端口</li>
<li>-i 可选; 指定服务器ip地址</li>
<li>【可参考信息】<a href="https://hexo.io/zh-cn/docs/server" target="_black">https://hexo.io/zh-cn/docs/server</a></li>
</ul>
<h4 id="hexo-deploy"><a href="#hexo-deploy" class="headerlink" title="hexo deploy"></a>hexo deploy</h4><p><font size=3 color=red>hexo deploy</font> 用于部署网站，可以简写为: hexo d</p>
<blockquote>
<figure class="highlight elixir"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="variable">$ </span>hexo d</span><br></pre></td></tr></table></figure>
</blockquote>
<p><strong>提示：</strong> 部署前需要修改_config.yml配置文件，可前往第二篇文章《deploy》处进行查看。</p>
<h4 id="hexo-clean"><a href="#hexo-clean" class="headerlink" title="hexo clean"></a>hexo clean</h4><p><font size=3 color=red>hexo clean </font>用于清理缓存文件，比较常用</p>
<blockquote>
<figure class="highlight elixir"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="variable">$ </span>hexo clean</span><br></pre></td></tr></table></figure>
</blockquote>
<ul>
<li>网站显示异常时候可尝试此操作，使用后需重新生成静态文件，命令顺序如下<blockquote>
<figure class="highlight ebnf"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attribute">hexo clean</span></span><br></pre></td></tr></table></figure>
<figure class="highlight ebnf"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attribute">hexo g</span></span><br></pre></td></tr></table></figure>
<figure class="highlight ebnf"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attribute">hexo s or hexo d</span></span><br></pre></td></tr></table></figure>
<p>可在本地运行或是静态文件生成后直接部署至网站</p>
</blockquote>
</li>
</ul>
<h3 id="部署"><a href="#部署" class="headerlink" title="部署"></a>部署</h3><p><strong>为何要部署呢？搭建博客不就是为了让更多的人看到内容嘛</strong><br>*那么开始将网站部署在Gitee（为什么是Gitee？因为Gitee在国内访问的话比Github快）</p>
<h4 id="创建仓库"><a href="#创建仓库" class="headerlink" title="创建仓库"></a>创建仓库</h4><p><strong>登录官网</strong>：<a target="_blank" rel="noopener" href="https://gitee.com/">https://gitee.com/</a> ； （没有账号的自己注册一个！）<br>新建一个仓库，将其命名为网站的名字比较方便！</p>
<img src="/blog/2021/03/02/Hexo%E7%B3%BB%E5%88%97%EF%BC%88%E4%B8%89%EF%BC%89/gitee%E4%BB%93%E5%BA%93%E5%88%9B%E5%BB%BA.jpg" class="" title="仓库创建图">

<h4 id="添加SSH公钥"><a href="#添加SSH公钥" class="headerlink" title="添加SSH公钥"></a>添加SSH公钥</h4><p><strong>说明：</strong> 每次更新代码到gitee就不必输入密码了，<br>创建SSH key</p>
<blockquote>
<figure class="highlight excel"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ssh-keygen -<span class="built_in">t</span> rsa -C <span class="string">&quot;邮箱地址&quot;</span></span><br></pre></td></tr></table></figure>
<p>1.提示你输入生成的key存放的路径，不设置则默认存放在 “你的用户名”下面，记得显示出来哦，默认是隐藏起来的。<br>2.提示输入密码，用于 每次提交的时候确认，可以不设置，直接回车两次即可<br>3.成功后就可以直接到 .ssh 文件夹查看 ssh key了。</p>
</blockquote>
<p>添加SSH key到Gitee</p>
<blockquote>
<p>首先复制 .ssh文件夹里 id_rsa_pub文件的内容，直接全部复制即可。<br>进入 gitee的设置，前往 安全设置——SSH公钥——确定</p>
<img src="/blog/2021/03/02/Hexo%E7%B3%BB%E5%88%97%EF%BC%88%E4%B8%89%EF%BC%89/ssh.jpg" class="" title="设置ssh钥匙">
</blockquote>
<p>测试SSH连接</p>
<blockquote>
<figure class="highlight julia"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ssh -T git<span class="meta">@github</span>.com</span><br></pre></td></tr></table></figure>
</blockquote>
<p>连接成功会看到如下输出</p>
<blockquote>
<p>Hi linfanqie! You’ve successfully authenticated, but GitHub does not provide shell access.</p>
</blockquote>
<p>若是出现如下输出，则是询问是否确认连接，输入yes确认</p>
<blockquote>
<p>The authenticity of host ‘github.com (ip地址)’ can’t be established.<br>RSA key fingerprint is 公钥<br>Are you sure you want to continue connecting (yes/no)? yes</p>
</blockquote>
<h4 id="部署静态服务"><a href="#部署静态服务" class="headerlink" title="部署静态服务"></a>部署静态服务</h4><p>点击服务，找到Gitee Pages</p>
<img src="/blog/2021/03/02/Hexo%E7%B3%BB%E5%88%97%EF%BC%88%E4%B8%89%EF%BC%89/pages.png" class="" title="部署网址服务">
<font size=3>
强制使用HTTPS：可选，看你是否需要<br/>
点击启动（更新），之后会生成一个链接，例如：https:个人空间网址.gitee.io/仓库名 即可进入网站查看部署后的效果！
</font>

<h4 id="将博客部署至Gitee"><a href="#将博客部署至Gitee" class="headerlink" title="将博客部署至Gitee"></a>将博客部署至Gitee</h4><blockquote>
<p>可前往第二篇文章处的《deploy》位置查看<br>部署好之后输入命令如下：hexo clean(清除所有缓存) -&gt; hexo g(重新生成所有资源) -&gt; hexo d (部署至gitee上)<br>完成之后可以部署静态服务了，看第2.3步操作，由于普通版的Gitee无法自动部署，所以每次部署后需要手动更新一次。</p>
</blockquote>

    </div>

    
    
    
        

<div>
<ul class="post-copyright">
  <li class="post-copyright-author">
    <strong>本文作者： </strong>林番茄
  </li>
  <li class="post-copyright-link">
    <strong>本文链接：</strong>
    <a href="https://linfanqie.gitee.io/2021/03/02/Hexo%E7%B3%BB%E5%88%97%EF%BC%88%E4%B8%89%EF%BC%89/" title="Hexo搭建个人博客（三）">https://linfanqie.gitee.io/2021/03/02/Hexo系列（三）/</a>
  </li>
  <li class="post-copyright-license">
    <strong>版权声明： </strong>本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" rel="noopener" target="_blank"><i class="fab fa-fw fa-creative-commons"></i>BY-NC-SA</a> 许可协议。转载请注明出处！
  </li>
</ul>
</div>


      <div>
        
          <div>
    
        <div style="text-align:center;color: #ccc;font-size:14px;">-------------本文结束<i class="fa fa-paw"></i>感谢您的阅读-------------</div>
    
</div>

        
      </div>

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/blog/tags/Hexo%E7%B3%BB%E5%88%97/" rel="tag"># Hexo系列</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/blog/2021/03/02/Hexo%E7%B3%BB%E5%88%97%EF%BC%88%E4%BA%8C%EF%BC%89/" rel="prev" title="Hexo搭建个人博客（二）">
      <i class="fa fa-chevron-left"></i> Hexo搭建个人博客（二）
    </a></div>
      <div class="post-nav-item">
    <a href="/blog/2021/03/03/Hexo%E9%81%87%E5%88%B0%E7%9A%84%E9%97%AE%E9%A2%98%E5%8F%8A%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/" rel="next" title="Hexo遇到的问题及解决办法">
      Hexo遇到的问题及解决办法 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4"><span class="nav-number">1.</span> <span class="nav-text">常用命令</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#hexo-init"><span class="nav-number">1.1.</span> <span class="nav-text">hexo init 
</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#hexo-new"><span class="nav-number">1.2.</span> <span class="nav-text">hexo new 
</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#hexo-generate"><span class="nav-number">1.3.</span> <span class="nav-text">hexo generate 
</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#hexo-server"><span class="nav-number">1.4.</span> <span class="nav-text">hexo server</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#hexo-deploy"><span class="nav-number">1.5.</span> <span class="nav-text">hexo deploy</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#hexo-clean"><span class="nav-number">1.6.</span> <span class="nav-text">hexo clean</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E9%83%A8%E7%BD%B2"><span class="nav-number">2.</span> <span class="nav-text">部署</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#%E5%88%9B%E5%BB%BA%E4%BB%93%E5%BA%93"><span class="nav-number">2.1.</span> <span class="nav-text">创建仓库</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E6%B7%BB%E5%8A%A0SSH%E5%85%AC%E9%92%A5"><span class="nav-number">2.2.</span> <span class="nav-text">添加SSH公钥</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E9%83%A8%E7%BD%B2%E9%9D%99%E6%80%81%E6%9C%8D%E5%8A%A1"><span class="nav-number">2.3.</span> <span class="nav-text">部署静态服务</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E5%B0%86%E5%8D%9A%E5%AE%A2%E9%83%A8%E7%BD%B2%E8%87%B3Gitee"><span class="nav-number">2.4.</span> <span class="nav-text">将博客部署至Gitee</span></a></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="林番茄"
      src="/blog/images/cate.jpg">
  <p class="site-author-name" itemprop="name">林番茄</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/blog/archives/">
        
          <span class="site-state-item-count">5</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/blog/categories/">
          
        <span class="site-state-item-count">1</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
        <span class="site-state-item-count">1</span>
        <span class="site-state-item-name">标签</span>
      </div>
  </nav>
</div>
  <div class="cc-license motion-element" itemprop="license">
    <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" class="cc-opacity" rel="noopener" target="_blank"><img src="/blog/images/cc-by-nc-sa.svg" alt="Creative Commons"></a>
  </div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-star"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">林番茄</span>
</div>
<script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
  <!--
    <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://mist.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Mist</a> 强力驱动
    </div>
    -->
    <div class="powered-by">
    <i class="fa fa-user-md"></i><span id="busuanzi_container_site_uv">
      本站访客数:<span id="busuanzi_value_site_pv"></span>
    </span>
    </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/blog/lib/anime.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js"></script>
  <script src="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.js"></script>
  <script src="/blog/lib/velocity/velocity.min.js"></script>
  <script src="/blog/lib/velocity/velocity.ui.min.js"></script>

<script src="/blog/js/utils.js"></script>

<script src="/blog/js/motion.js"></script>


<script src="/blog/js/schemes/muse.js"></script>


<script src="/blog/js/next-boot.js"></script>




  















  

  

<script src="/blog/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"pluginRootPath":"live2dw/","pluginJsPath":"lib/","pluginModelPath":"assets/","model":{"jsonPath":"/blog/live2dw/assets/hijiki.model.json"},"display":{"position":"right","width":150,"height":300},"mobile":{"show":true},"log":false,"tagMode":false});</script></body>
</html>
